package com.sujeet.office.tracker.controller;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

import com.sujeet.office.tracker.entity.SampleTaskCreator;
import com.sujeet.office.tracker.entity.Task;

public class ShowTasks extends HttpServlet {
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

		Task task = SampleTaskCreator.getATask();
		String address = "/WEB-INF/ShowTasks.jsp";
		request.setAttribute("aTask", task);
		RequestDispatcher dispatcher = request.getRequestDispatcher(address);
		dispatcher.forward(request, response);
	}
}
